import java.util.Scanner;
/**
 * @Author  1
 * @Date 2022/4/16  13:22
 * @Description:
 */
public class TestDemo {
    public static void main(String[] args) {

    }


    public static void main23(String[] args) {
        System.out.println("\\\"hello\\\"");
        //System.out.println("\\"hello\\"");
        System.out.println("/\"hello/\"");
    }


    public static void main22(String[] args) {
        double x=2.0;
        int y=4;
        x/=++y;
        System.out.println(x);
    }


    public static void main21(String[] args) {
        short a = 128;
        System.out.println(a);
        byte b = (byte) a;
        System.out.println(b);

    }



    public static void main20(String[] args) {
        System.out.println();
        //else跟就近的if结合 id后加花括号  提高可读性
        //有黄色代表警告  x == 10
    }


    public static void main19(String[] args) {
        Scanner scanner = new Scanner(System.in);//对象
        while(scanner.hasNextInt()){
            int year = scanner.nextInt();
            if (year%400==0){
                System.out.println(year+"是世纪闰年");
            }else if(year%100!=0){
                System.out.println(year+"是普通闰年");
            }else{
                System.out.println(year+"不是闰年");
            }
        }
    }
    public static void main18(String[] args) {
        Scanner scanner = new Scanner(System.in);//对象
        while(scanner.hasNext()) {
            int year = scanner.nextInt();
            if ((year % 4 == 0 && year % 100 != 0 )|| year % 400 == 0) {
                if (year % 400 != 0)
                    System.out.println("是闰年");
                else System.out.println("是世纪闰年");
            }else {
                System.out.println("不是闰年");
            }
        }

    }


    public static void main17(String[] args) {
        int year = 2000;
        //判断世纪闰年
        if(year % 100 == 0) {
            if(year % 400 ==0){
                System.out.println(year +"是世纪闰年");
            }else{
                //判断普通闰年
                if(year % 4 == 0){
                    System.out.println(year + "是普通闰年");
                }else{
                    System.out.println(year + "不是闰年");
                }
            }
        }
    }


    public static void main16(String[] args) {
        int num = 10;
        if(num > 0){
            System.out.println("正数");

        }else if(num < 0) {
            System.out.println("负数");
        }else{
            System.out.println("0");
        }
    }


    public static void main15(String[] args) {
        Scanner scanner = new Scanner(System.in);//对象
        int n = scanner.nextInt();
        System.out.println(n);
    }


    public static void main14(String[] args) {
        int a =10;
        if(a % 2 == 0) {
            System.out.println("偶数！");
        }
            else {
                System.out.println("奇数!");
            }
    }


    public static void main13(String[] args) {
        int a = 10;
        //if(10<=a<=20) {
        if(10<=a && a<=20);
    }


    public static void main12(String[] args) {
        int a = 1;
        if(a == 11){
            System.out.println("2");
        }
        else {
            System.out.println("haha");
        }
    }


    public static void main11(String[] args) {
        int a = 1;
        if(a == 11){
            System.out.println("2");
        }
        System.out.println("3");
        System.out.println("1");
        System.out.println("4");
        System.out.println("5");

    }
    public static void main10(String[] args) {
        int a = 10;
        int b = 20;
        int c = a > b? a : b;
        System.out.println(c);
    }


    public static void main9(String[] args) {
        int a = 0xffffffff;
        System.out.printf("%x\n", a >>> 1);
        //System.out.println(-1 >>> 1);
    }


    public static void main8(String[] args) {
        int a = 0x0000000f;//0开头16进制  这里x表示16进制
        System.out.printf("%x\n", ~a);
    }


    public static void main7(String[] args) {
        //System.out.println(10 < 20 & 10 / 0 == 0);
        //会报错  单符号就是    不支持短路求值

    }


    public static void main6(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(!(a == b));//逻辑非
    }


    public static void main5(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == 10 || b == 20);
        //  一真则真    短路或  布尔1为真  不看后面
    }


    public static void main4(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a != 10 && b != 20);
        // 布尔表达式1 && 布尔表达式 2   而且 ^问题  即 全真才真
        // 短路与   即 表达式1为真才会判断表达式二
    }


    public static void main3(String[] args) {
        int a = 10;
        int b = 20;
        //System.out.println(a == b);
        System.out.println(a!=b);//不等
        //<=  >=

    }
    public static void main2(String[] args) {
        int a = 10;
        //a++;//表示给a加1
        //int b =a++;  即 b = a; a = a+1;
        int b = ++a;  //即 a = a+1; b = a;
        System.out.println(a);
    }



    public static void main1(String[] args) {
        //int a =10;
        //a+=9;//即a = a+9
        //System.out.println(a);
        int a = 99;
        short s = 0;
        //s = (short) (s+a);
        s +=a;
        System.out.println(s);


    }

}
